package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 操作费
 * </p>
 * @author hua
 * @since 2024-11-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_operate_bill")
public class OperateBillDo extends Model<OperateBillDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 计费项名称
     */
    @TableField("bill_item_name")
    private String billItemName;

    /**
     * 操作费类型 input 入库 out出库
     */
    @TableField("type")
    private String type;

    /**
     * 单据类型  OperateBill_Type
     */
    @TableField("bill_type")
    private Integer billType;

    /**
     * 币种
     */
    @TableField("currency_code")
    private String currencyCode;

    /**
     * 重量计费单位
     */
    @TableField("weight_unit")
    private String weightUnit;

    /**
     * 重量计算方式 0 实重 1实重和体积重取大
     */
    @TableField("weight_calculate_way")
    private Integer weightCalculateWay;

    @TableField("coefficient")
    private Integer coefficient;

    /**
     * 体积计算单位
     */
    @TableField("volume_unit")
    private String volumeUnit;

    @TableField("tips")
    private String tips;

    @TableField("status")
    private Integer status;

    @TableField(value = "tenant_id", fill = FieldFill.INSERT)
    private Long tenantId;

//    /**
//     * 操作费类型 0 入库 1出库
//     */
//    @TableField("module_ype")
//    private Integer moduleYpe;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private Long createBy;

    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    @TableField(value = "update_by", fill = FieldFill.UPDATE)
    private Long updateBy;

    @TableField("delete_time")
    private Date deleteTime;

    @TableField("delete_by")
    private Long deleteBy;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
